package com.tangyuan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.UserCoordination;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小梁
 * @since 2020-12-03
 */
@Repository
public interface UserCoordinationMapper extends BaseMapper<UserCoordination> {

    List<UserCoordination> getUserCoordinationPageByUserId1(Long userId);

    List<UserCoordination> getUserCoordinationByUserId1(@Param("ids")List<Long> ids);

    Date getMaxUpdateTime();

    UserCoordination getUserCoordination(@Param("userId1") Long userId1, @Param("userId2")Long userId2);
}
